package com.lxyk.domain;

import com.lxyk.utils.StrDateUtils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class UserInfo {
    private Integer id;
    private Integer gender;
    private String name;
    private String jobName;
    private String phone;
    private Date birthday;
    private String idCard;
    private String position;
    private Date entryTime;
    private Integer uid;

    public UserInfo() {
    }

    public UserInfo(Integer id, Integer gender, String name, String jobName, String phone, Date birthday, String idCard, String position, Date entryTime, Integer uid) {
        this.id = id;
        this.gender = gender;
        this.name = name;
        this.jobName = jobName;
        this.phone = phone;
        this.birthday = birthday;
        this.idCard = idCard;
        this.position = position;
        this.entryTime = entryTime;
        this.uid = uid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBirthday() {
        return StrDateUtils.dateToStr(birthday);
    }

    public Date getBirthdayDate() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getEntryTime() {
        return StrDateUtils.dateToStr(entryTime);
    }

    public Date getEntryTimeDate() {
        return entryTime;
    }

    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", gender=" + gender +
                ", name='" + name + '\'' +
                ", jobName='" + jobName + '\'' +
                ", phone='" + phone + '\'' +
                ", birthday=" + birthday +
                ", idCard='" + idCard + '\'' +
                ", position='" + position + '\'' +
                ", entryTime=" + entryTime +
                ", uid=" + uid +
                '}';
    }
}
